﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HFController;

namespace HFWebApp.Control
{
    public partial class c_LegalAffarisClass_3 : System.Web.UI.UserControl
    {
        public int LegalAffairsID { get; set; }

        public int Count { get; set; }

        public hf.Model.LegalAffairs legalModel = null;

        public BagePages bg = new BagePages();
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                legalModel = LegalAffairsController.getController().getLegalAffairsModel(LegalAffairsID);
                rpt1.DataSource = LegalAffairsController.getController().getLegalAffairsBiglClass(Count, "LegalAffairsID=" + LegalAffairsID.ToString());
                rpt1.DataBind(); //执行绑定
            }
        }
    }
}